package com.xxg.renrenshop.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 店铺Dao
 *
 * @author xuxiaogang
 * @date 2021-11-17
 */
@Mapper
@Component
public interface RenrenShopShopDao {
    /**
     * 获取所有店铺的信息
     *
     * @return 结果
     */
    @Select("select id,user_id as userId,name,logo from renren_shop_shop where is_deleted = 0 and is_trial = 0")
    List<RenrenShopShop> selectAll();
}